package com.more.spring.boot.mapper;

import com.more.spring.boot.pojo.Role;
import com.more.spring.boot.pojo.User;
import com.more.spring.boot.pojo.UserDetail;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

import java.util.HashMap;
import java.util.List;

public interface UserMapper {

    public List<User> selectAllUser();

    public List<User> selectUserList();

    public int insertUser(User user);

    public User selectUesrById(int id);

    public HashMap<String, String> selectUesrById2(int id);

    public int updateUser(User user);

    public int deleteUserById(int id);

    public int insertBatchUser(List<User> users);

    public User selectUserWithAlias(int id);


    public List<User> dynamicSelectUser(boolean includeGender);

    /**
     * 一对多测试
     * @return
     */
    public List<Role> selectRoleUser();

    /**
     * 一对一测试
     * @return
     */
    public List<UserDetail> selectUserDetail();


}
